package com.dayaokeji.rhythmschoolstudent.client.common.exam.subject_type.utils;

import android.support.annotation.NonNull;

// Created by Zeno on 2018/5/14
// version 1.0
// Copyright (C) 2018 -- 2020 ALL Right
public class ScoreUtil {

    @NonNull
    public static String doubleTrans(@NonNull double d){
        if(Math.round(d)-d==0){
            return String.valueOf((long)d);
        }
        return String.format("%1$.1f",d);
    }
}
